/**
 *Copyright (c) 2003, 2018, UMF and/or its affiliates. All rights reserved.
 */
package com.umf.b2b.model.bindcard;

import com.umf.b2b.MerchantBaseRequest;
import com.umpay.dto.UMFResponse.Message;
import com.umpay.util.UMFUtil;

/**
<p>Title:BindcardEnterprise</p>  
<p>Description: ����ҵ�Թ��˻�</p>
 */
public class BindcardEnterprise extends MerchantBaseRequest {

	private String notify_url;
	private String order_id;//*����ش� [��Ӧ����] �̻����ɵı�ʶ�ñʽ��׵ı�ţ������ű���Ψһ����Ž�֧�����֡�Ӣ����ĸ���ʹ�ã�����Ϊ�ַ�����
	private String mer_date;//*����ش� [��Ӧ����] �̻����ɶ��������ڣ���ʽYYYYMMDD
	private String user_id;//*����ش� [��Ӧ����] ������õ��������ص�user_id
	private String bank_account_name;//*����ش� ��ҵ�����˺�����
	private String bank_account;//*����ش� ��ҵ�����˺�
	private String gate_id;//*����ش� �����ĵ������б���˵�������й���������:ICBC
	private String bank_branch_name;//*����ش� ��ҵ������֧��ȫ��
	private String mobile_id;
	private String url = "/bindcard/enterprise";
	
	private String p_agreement_id;//[��Ӧ����] �󿨳ɹ��᷵��Э��ţ��󿨳ɹ�������̻���ʹ�ÿ��֧��ʱ��ֻ��ʹ��Э��Ž���֧��
	private String last_four_cardid;//[��Ӧ����] �����˻��ź���λ

	@Override
	public String getRequestUrl() {
		return baseUrl + url;
	}

	@Override
	public BindcardEnterprise doRequest() throws Exception {
		Message<BindcardEnterprise> response = UMFUtil.post(createAPIContext(), this,BindcardEnterprise.class);
		MerchantBaseRequest baseResult = convertResult(response, BindcardEnterprise.class);
		if(baseResult == null)
			return null;
		return (BindcardEnterprise)baseResult;
	}
	
	public String getMer_id() {
		return mer_id;
	}

	public void setMer_id(String mer_id) {
		this.mer_id = mer_id;
	}

	public String getOrder_id() {
		return order_id;
	}

	public void setOrder_id(String order_id) {
		this.order_id = order_id;
	}

	public String getMer_date() {
		return mer_date;
	}

	public void setMer_date(String mer_date) {
		this.mer_date = mer_date;
	}

	public String getNotify_url() {
		return notify_url;
	}

	public void setNotify_url(String notify_url) {
		this.notify_url = notify_url;
	}

	public String getUser_id() {
		return user_id;
	}

	public void setUser_id(String user_id) {
		this.user_id = user_id;
	}

	public String getGate_id() {
		return gate_id;
	}

	public void setGate_id(String gate_id) {
		this.gate_id = gate_id;
	}

	public String getBank_account_name() {
		return bank_account_name;
	}

	public void setBank_account_name(String bank_account_name) {
		this.bank_account_name = bank_account_name;
	}

	public String getBank_branch_name() {
		return bank_branch_name;
	}

	public void setBank_branch_name(String bank_branch_name) {
		this.bank_branch_name = bank_branch_name;
	}

	public String getP_agreement_id() {
		return p_agreement_id;
	}

	public void setP_agreement_id(String p_agreement_id) {
		this.p_agreement_id = p_agreement_id;
	}

	public String getLast_four_cardid() {
		return last_four_cardid;
	}

	public void setLast_four_cardid(String last_four_cardid) {
		this.last_four_cardid = last_four_cardid;
	}

	public String getBank_account() {
		return bank_account;
	}

	public void setBank_account(String bank_account) {
		this.bank_account = bank_account;
	}

	public String getMobile_id() {
		return mobile_id;
	}

	public void setMobile_id(String mobile_id) {
		this.mobile_id = mobile_id;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("BindcardEnterprise [notify_url=");
		builder.append(notify_url);
		builder.append(", order_id=");
		builder.append(order_id);
		builder.append(", mer_date=");
		builder.append(mer_date);
		builder.append(", user_id=");
		builder.append(user_id);
		builder.append(", bank_account=");
		builder.append(bank_account);
		builder.append(", bank_account_name=");
		builder.append(bank_account_name);
		builder.append(", gate_id=");
		builder.append(gate_id);
		builder.append(", bank_branch_name=");
		builder.append(bank_branch_name);
		builder.append(", mobile_id=");
		builder.append(mobile_id);
		builder.append(", url=");
		builder.append(url);
		builder.append(", p_agreement_id=");
		builder.append(p_agreement_id);
		builder.append(", last_four_cardid=");
		builder.append(last_four_cardid);
		builder.append(", version=");
		builder.append(version);
		builder.append(", mer_id=");
		builder.append(mer_id);
		builder.append(", ret_code=");
		builder.append(ret_code);
		builder.append(", ret_msg=");
		builder.append(ret_msg);
		builder.append(", links=");
		builder.append(links);
		builder.append("]");
		return builder.toString();
	}

}
